package com.aerotechnic.dao.implementation;

import java.util.List;

public interface GenericDao<T> {
	/**
	 * Method that returns the number of entries from a table that meet some
	 * criteria (where clause params)
	 * 
	 * @param params
	 *            sql parameters
	 * @return the number of records meeting the criteria
	 */

	 void save(T myEntity);//before inserting make sure that the id is not duplicated if it's not save the object and return true otherwise restrict saving and return false
     
     void update(T myEntity);
     
     void delete(int id);

     T findByID(int id);
     
     List<T> findAll();
     
     T authenticate(String login, String password);
}
